package Proiect;

public abstract class Operator extends Nod{
	public String toString(){
		return "";
	}
	abstract protected double calcul(double aux1, double aux2);
	abstract protected String concatTermeni(String aux1, String aux2);
	public double calcul(){
		double x1 = this.getfStang().calcul();
		double x2 = this.getfDrept().calcul();
	
		if ((this.getfDrept() != null) && (this.getfStang() != null))
		{
		return calcul(x1, x2);
		}
		else if (this.getfStang() == null){
			return this.getfStang().calcul();
		}
		else
			return calcul(x1,x2); //NOT COMPLETE ! NOT CORRECTLY IMPLEMENTED , AND SO ON 
	}
	protected double Calcul(double aux1, double aux2) {
		// TODO Auto-generated method stub
		return 0;
	}
}
